package cc.rboot.masking.processor;

import cc.rboot.masking.core.IDataMaskingProcessor;

public class PhoneDataMaskingProcessor implements IDataMaskingProcessor<String> {

    @Override
    public String masking(String phone, String condition) {
        return phone.replaceAll("(\\w{3})\\w*(\\w{4})", "$1****$2");
    }
}
